from socket import *
import time
s = socket(AF_INET, SOCK_DGRAM)
data = b'dddddddddddddddddddddddd'
addr = ('localhost',5000)
while True:
    s.sendto(data,addr)
    print("send  %s to,%s:%s" % ((len(data),) + addr))
    time.sleep(1)

s.close()